cmake_minimum_required(VERSION 3.0.0)
#最低版本要求

project(helloworld)
#给这个项目命名

#aux_source_directory(. SRC)
# .表示当前目录下的所有文件，这里对其起个名字，命名为SRC
#其意义是所有源文件的集合，如（xx.c x.cc xxx.cpp等）

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set是创建变量，&{}是取值，set(变量，赋予变量的值)
#EXECUTABLE_OUTPUT_PATH，是输出目录。表示生成的可执行文件放在哪儿

#add_definitions("-g")
#编译时添加的参数命令，-g就是生成可调式的信息
include_directories(${PROJECT_SOURCE_DIR}/include/)
include_directories(${PROJECT_SOURCE_DIR}/include/logger/)
include_directories(${PROJECT_SOURCE_DIR}/include/utils/)
include_directories(${PROJECT_SOURCE_DIR}/include/thread/)
include_directories(${PROJECT_SOURCE_DIR}/include/threadPool/)
include_directories(${PROJECT_SOURCE_DIR}/include/reactor/)
include_directories(${PROJECT_SOURCE_DIR}/include/view/)
include_directories(${PROJECT_SOURCE_DIR}/include/controller/)
include_directories(${PROJECT_SOURCE_DIR}/include/mainServer/)
include_directories(${PROJECT_SOURCE_DIR}/include/mysqldb/)
include_directories(${PROJECT_SOURCE_DIR}/include/redis/)
#PROJECT_SOURCE_DIR的值，是当前项目的根目录

#add_executable(helloworld ${SRC})
#生成可执行文件，类似于g++,gcc -o 
#生成的文件叫helloword，用${SRC}里的文件生成。

add_subdirectory(src)
#增加子目录，使CMakeLists.txt形成树形结构
